﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Sys_SpecialityLevelExamTypeMapping 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Sys_SpecialityLevelExamTypeMapping : Entity 
	{
		public TB_Sys_SpecialityLevelExamTypeMapping():base("TB_Sys_SpecialityLevelExamTypeMapping") {    _SpecialityLevelMappingID=Guid.NewGuid().ToString();}


        #region Model
        private string _SpecialityLevelMappingID;
        private string _SpecialityKindsNO;
        private int _ExamLevel;
        private string _ExamLevelName;
        private string _ExamYear;
        private string _ExamTypeNo;
        private string _CalculateScoreID;
        private string _ExamScoreTypeID;
        /// <summary>
        /// 主键
        /// </summary>
        public string SpecialityLevelMappingID
        {
            get { return _SpecialityLevelMappingID; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityLevelMappingID, _SpecialityLevelMappingID, value);
                this._SpecialityLevelMappingID = value;
            }
        }
        /// <summary>
        /// 专业编码
        /// </summary>
        public string SpecialityKindsNO
        {
            get { return _SpecialityKindsNO; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKindsNO, _SpecialityKindsNO, value);
                this._SpecialityKindsNO = value;
            }
        }
        /// <summary>
        /// 考试级别
        /// </summary>
        public int ExamLevel
        {
            get { return _ExamLevel; }
            set
            {
                this.OnPropertyValueChange(_.ExamLevel, _ExamLevel, value);
                this._ExamLevel = value;
            }
        }
        /// <summary>
        /// 考试级别名称
        /// </summary>
        public string ExamLevelName
        {
            get { return _ExamLevelName; }
            set
            {
                this.OnPropertyValueChange(_.ExamLevelName, _ExamLevelName, value);
                this._ExamLevelName = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        /// <summary>
        /// 考试方式
        /// </summary>
        public string ExamTypeNo
        {
            get { return _ExamTypeNo; }
            set
            {
                this.OnPropertyValueChange(_.ExamTypeNo, _ExamTypeNo, value);
                this._ExamTypeNo = value;
            }
        }
        /// <summary>
        /// 算分规则ID
        /// </summary>
        public string CalculateScoreID
        {
            get { return _CalculateScoreID; }
            set
            {
                this.OnPropertyValueChange(_.CalculateScoreID, _CalculateScoreID, value);
                this._CalculateScoreID = value;
            }
        }
        /// <summary>
        /// 评分方式ID
        /// </summary>
        public string ExamScoreTypeID
        {
            get { return _ExamScoreTypeID; }
            set
            {
                this.OnPropertyValueChange(_.ExamScoreTypeID, _ExamScoreTypeID, value);
                this._ExamScoreTypeID = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.SpecialityLevelMappingID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.SpecialityLevelMappingID,
				_.SpecialityKindsNO,
				_.ExamLevel,
				_.ExamLevelName,
				_.ExamYear,
				_.ExamTypeNo,
				_.CalculateScoreID,
				_.ExamScoreTypeID};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._SpecialityLevelMappingID,
				this._SpecialityKindsNO,
				this._ExamLevel,
				this._ExamLevelName,
				this._ExamYear,
				this._ExamTypeNo,
				this._CalculateScoreID,
				this._ExamScoreTypeID};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._SpecialityLevelMappingID = DataUtils.ConvertValue<string>(reader["SpecialityLevelMappingID"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
            this._ExamLevel = DataUtils.ConvertValue<int>(reader["ExamLevel"]);
            this._ExamLevelName = DataUtils.ConvertValue<string>(reader["ExamLevelName"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
            this._ExamTypeNo = DataUtils.ConvertValue<string>(reader["ExamTypeNo"]);
            this._CalculateScoreID = DataUtils.ConvertValue<string>(reader["CalculateScoreID"]);
            this._ExamScoreTypeID = DataUtils.ConvertValue<string>(reader["ExamScoreTypeID"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._SpecialityLevelMappingID = DataUtils.ConvertValue<string>(row["SpecialityLevelMappingID"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
            this._ExamLevel = DataUtils.ConvertValue<int>(row["ExamLevel"]);
            this._ExamLevelName = DataUtils.ConvertValue<string>(row["ExamLevelName"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
            this._ExamTypeNo = DataUtils.ConvertValue<string>(row["ExamTypeNo"]);
            this._CalculateScoreID = DataUtils.ConvertValue<string>(row["CalculateScoreID"]);
            this._ExamScoreTypeID = DataUtils.ConvertValue<string>(row["ExamScoreTypeID"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Sys_SpecialityLevelExamTypeMapping");
            /// <summary>
            /// 主键
            /// </summary>
            public readonly static Field SpecialityLevelMappingID = new Field("SpecialityLevelMappingID", "TB_Sys_SpecialityLevelExamTypeMapping", "主键");
            /// <summary>
            /// 专业编码
            /// </summary>
            public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO", "TB_Sys_SpecialityLevelExamTypeMapping", "专业编码");
            /// <summary>
            /// 考试级别
            /// </summary>
            public readonly static Field ExamLevel = new Field("ExamLevel", "TB_Sys_SpecialityLevelExamTypeMapping", "考试级别");
            /// <summary>
            /// 考试级别名称
            /// </summary>
            public readonly static Field ExamLevelName = new Field("ExamLevelName", "TB_Sys_SpecialityLevelExamTypeMapping", "考试级别名称");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_Sys_SpecialityLevelExamTypeMapping", "考试年度");
            /// <summary>
            /// 考试方式
            /// </summary>
            public readonly static Field ExamTypeNo = new Field("ExamTypeNo", "TB_Sys_SpecialityLevelExamTypeMapping", "考试方式");
            /// <summary>
            /// 算分规则ID
            /// </summary>
            public readonly static Field CalculateScoreID = new Field("CalculateScoreID", "TB_Sys_SpecialityLevelExamTypeMapping", "算分规则ID");
            /// <summary>
            /// 评分方式ID
            /// </summary>
            public readonly static Field ExamScoreTypeID = new Field("ExamScoreTypeID", "TB_Sys_SpecialityLevelExamTypeMapping", "评分方式ID");
        }
        #endregion


    }
}

